#include <iostream>
using namespace std;

class Mammal {
public:
	Mammal() {
		cout << "Mammal" << endl;
	}

	~Mammal() {
		cout << "~Mammal" << endl;
	}
};

class Dog : public Mammal {
public:
	Dog() :Mammal() {
		cout << "Dog" << endl;
	}

	~Dog() {
		cout << "~Dog" << endl;
	}
};


//int main() {
//	Dog white;
//	return 0;
//}